package com.zhijian.medical.dao.local;

import com.zhijian.medical.entity.po.SpecialInstruction;
import com.zhijian.medical.entity.vo.request.SpecialInstructionSearchVo;
import com.zhijian.medical.entity.vo.response.SpecialInstructionVo;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface SpecialInstructionMapper {
    int deleteByPrimaryKey(Long id);

    int insert(SpecialInstruction record);

    int insertSelective(SpecialInstruction record);

    SpecialInstruction selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SpecialInstruction record);

    int updateByPrimaryKey(SpecialInstruction record);

    /**
     * 查询总数
     *
     * @param specialInstructionSearchVo
     * @return
     */
    int count(SpecialInstructionSearchVo specialInstructionSearchVo);

    /**
     * 查询列表
     *
     * @param specialInstructionSearchVo
     * @return
     */
    List<SpecialInstructionVo> selectList(SpecialInstructionSearchVo specialInstructionSearchVo);

    /**
     * 查询单个
     *
     * @param specialInstructionSearchVo
     * @return
     */
    SpecialInstructionVo selectOne(SpecialInstructionSearchVo specialInstructionSearchVo);

    /**
     * 根据ID查询vo
     *
     * @param id
     * @return
     */
    SpecialInstructionVo selectVoById(Long id);

    /**
     * 批量删除
     *
     * @param idList
     * @return
     */
    void deleteByIdList(@Param("idList") List<Long> idList);

    /**
     * 动态删除
     *
     * @param specialInstructionSearchVo
     * @return
     */
    void deleteByCondition(SpecialInstructionSearchVo specialInstructionSearchVo);

    /**
     * 批量新增
     *
     * @param entities
     * @return
     */
    int insertBatch(@Param("entities") List<SpecialInstruction> entities);

    /**
     * 根据DiagnoseId查询列表
     *
     * @param diagnoseId
     * @return
     */
    List<SpecialInstructionVo> selectListByDiagnoseId(Long diagnoseId);
}